package com.bs.sc.mgr.goods.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.bs.sc.mgr.goods.entity.Goods;

@Repository("goodsDao")
public interface GoodsDao extends JpaRepository<Goods, String> {

	public List<Goods> findByBoutique(String boutique);

	@Query(value = "select g from Goods g where g.id in ?1")
	public List<Goods> findGoodsByGoodsIds(String[] goodsIds);

	public List<Goods> findByClassify(int classify);
}
